package com.wanxi.loopswitch;

public class Break {
    public static void main(String[] args) {
//        aa();
//        System.out.println("bbb");
        bb();
    }

    public static void aa() {
        for (int i = 0; i < 6; i++) {
            if (i == 3) {
                System.out.println("a");
                break;
            }
            System.out.println(i);
        }
        System.out.println("aaa");
    }

    public static void bb() {
        aa:
        for (int i = 0; i < 3; i++) {

            for (int j = 0; j < 4; j++) {
                if (j == 1) {
                    break aa;
//                    continue;
//                    return;
                }
                System.out.println("i为" + i + " j为：" + j);
            }
        }
        System.out.println("aaaaaaaaaaa");
    }
}
